<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>智能监护系统</title>
<meta name="keywords" content="" />
<meta name="description" content="" />

<link href="tooplate_style.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" href="css/nivo-slider.css" type="text/css"
	media="screen" />

<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	});
</script>

<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />

<script type="text/javascript" src="js/ddsmoothmenu.js">

/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "tooplate_menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>

<link rel="stylesheet" href="css/slimbox2.css" type="text/css"
	media="screen" />
<script type="text/JavaScript" src="js/slimbox2.js"></script>
<script src="https://cdn.hcharts.cn/highcharts/highcharts.js"></script>
<style type="text/css">
	td {
		border: solid;
		border-width: 1px;
		text-align:center;
	}
</style>

</head>
<body>

	<div id="tooplate_wrapper">
		<div id="tooplate_header">
			<div id="site_title">
				<a href="index.html" style="background: none;">智能监护系统</a>
			</div>
			<div id="tooplate_menu" class="ddsmoothmenu">
				<ul>
					<li><a href="contact.html">个人首页</a></li>
					<li><a href="contact1.html">数据采集与分析</a></li>
					<li><a href="contact2.html">历史对比</a></li>
					<li><a href="contact3.html" class="selected">系统设置</a></li>
				</ul>
				<br style="clear: left" />
			</div>
			<!-- end of tooplate_menu -->
			<div class="clear"></div>
		</div>
		<!-- END of header -->
		<!-- END of middle -->

		<div id="tooplate_main" style="padding: 15px 0">
			<div class="content_wrapper content_mb_60">
				<div>
					<input type="hidden" id='id' />
					<table width='100%'>
						<tr style="height: 100px;border: 1px solid" >
							<td>数据采集间隔：</td>
							<td><input type="text" id='intervalTime' value='60000' /></td>
							<td>在铺值设置：</td>
							<td><input type="text" id='standardValue' value='1000' /></td>
							<td>睡眠误差值：</td>
							<td><input type="text" id='missValue' value='200' /></td>
							<td><input type="button" onclick='saveSetting()' value="确定" /></td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		<!-- END of tooplate_wrapper -->

	</div>
	<script type="text/javascript" src="/js/layer/layer.js"></script>
	<script type="text/JavaScript">
		function saveSetting(){
			var params={
				'id':$('#id').val(),
				'intervalTime':$('#intervalTime').val(),
				'standardValue':$('#standardValue').val(),
				'missValue':$('#missValue').val()
			};
			$.ajax({
				   type: "POST",
				   url: "/bedcheck/saveSetting.do",
				   data: params,
				   success: function(msg){
					   layer.msg('保存成功');
					   $('#id').val(msg.data.id);
				   }
				});
		}
	</script>
</body>
</html>